<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:insertDefinition name="dialog-layout">
	<tiles:putAttribute name="head">
		<script type="text/javascript">
			$(function() {
				$("form").Validform({
					ajaxPost : true,
					customReset : true,
					tiptype : ValidUtils.siblingTip,
					callback : function(data) {
						helper.showMsg(data, {
							okHandler : function() {
								art.dialog.data("success", true);
								art.dialog.close();
							}
						});
					}
				});
			});
		</script>
	</tiles:putAttribute>
	<tiles:putAttribute name="mainBody">
		<form class="form-horizontal" action="doModifyCourse" method="post">
			<input type="hidden" value="${course.id}" name="id" />
			<fieldset>
				<legend>修改课程</legend>
				<div class="control-group">
					<div class="control-label">课程名称</div>
					<div class="controls">
						<input type="text" name="name" value="${course.name}" />
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">说明</div>
					<div class="controls">
						<input type="text" name="title" value="${course.title}" />
					</div>
				</div>
			</fieldset>
			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn btn-primary">提交</button>
				</div>
			</div>
		</form>
	</tiles:putAttribute>
</tiles:insertDefinition>